home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Appearance SDK / Appearance Sample Code / Source / AppearanceSamplePrefix < prev    next >
Encoding:
Text File  |  1998-01-27  |  823 b   |  32 lines  |  [TEXT/CWIE]

  1. // #include <MacHeaders.h>
  2.  
  3. #define DEBUG        1
  4. #define NO_STATICS    1
  5.  
  6. #define OLDROUTINENAMES     0
  7. #define OLDROUTINELOCATIONS 0
  8.  
  9. /*
  10.  *    Metrowerks-specific definitions
  11.  *
  12.  *    These definitions are commonly used but not in Apple's headers. We define
  13.  *    them in our precompiled header so we can use the Apple headers without modification.
  14.  */
  15.  
  16. #define PtoCstr        p2cstr
  17. #define CtoPstr        c2pstr
  18. #define PtoCString    p2cstr
  19. #define CtoPString    c2pstr
  20.  
  21. #define topLeft(r)    (((Point *) &(r))[0])
  22. #define botRight(r)    (((Point *) &(r))[1])
  23.  
  24. // This is to help the sources compile under UniversalHeader 2 and 3
  25.  
  26. #define kControlCheckBoxCheckedValue        kControlCheckboxCheckedValue
  27. #define kControlCheckBoxUncheckedValue        kControlCheckboxUncheckedValue
  28. #define kControlCheckBoxMixedValue            kControlCheckboxMixedValue
  29.  
  30. #define DELAY_LONG            SInt32
  31.  
  32.